package com.bargate.domain.spring.expression;

import java.util.Comparator;

/**
 * Created by IntelliJ IDEA.
 * User: EAD-MASTER
 * Date: 01/10/2010
 * Time: 14:40:47
 * To change this template use File | Settings | File Templates.
 */
public class ABCComparator implements Comparator<Storm> {
    public int compare(Storm o1, Storm o2) {
        return o1.getType().toCharArray()[0] > o2.getType().toCharArray()[0] ? 0 : o1.getType().toCharArray()[0] < o2.getType().toCharArray()[0] ? -1 : 1;
    }

}
